﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Visa.DB;

namespace VisaApp.Models
{
    public class ChauLucModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public Nullable<bool> Status { get; set; }
        public Nullable<System.DateTime> DateCreate { get; set; }
        public Nullable<bool> Detele { get; set; }
        public string Description { get; set; }
        public string Keywork { get; set; }
        public string metaDescription { get; set; }
        public string MetaTitle { get; set; }
        public string regioncode { get; set; }
        public string clat { get; set; }
        public string clong { get; set; }

        public List<QuocGiaModel> listQG { get; set; }

        public static void MapFrom(ChauLucModel mode, ref ChauLuc entity)
        {
            entity.Id = mode.Id;
            entity.Name = mode.Name;
            entity.Status = mode.Status;
            entity.DateCreate = mode.DateCreate;
            entity.Detele = mode.Detele;
            entity.Description = mode.Description;
            entity.Keywork = mode.Keywork;
            entity.metaDescription = mode.metaDescription;
            entity.MetaTitle = mode.MetaTitle;
            entity.regioncode = mode.regioncode;
            entity.clat = mode.clat;
            entity.clong = mode.clong;
        }

        public static void MapFrom(ChauLuc entity, ref ChauLucModel mode)
        {
            mode.Id = entity.Id;
            mode.Name = entity.Name;
            mode.Status = entity.Status;
            mode.DateCreate = entity.DateCreate;
            mode.Detele = entity.Detele;
            mode.Description = entity.Description;
            mode.Keywork = entity.Keywork;
            mode.metaDescription = entity.metaDescription;
            mode.MetaTitle = entity.MetaTitle;
            mode.clat = entity.clat;
            mode.clong = entity.clong;
            mode.regioncode = entity.regioncode;
        }
    }
}